
#include <material_editor/changeshadertypedialog.h>

ChangeShaderTypeDialog::ChangeShaderTypeDialog(QWidget *parent) :
    QDialog(parent)
{
  _gui.setupUi (this);

  connect (_gui.pushButtonOk, SIGNAL(clicked ()), this, SLOT(accept()));
  connect (_gui.pushButtonCancel, SIGNAL(clicked ()), this, SLOT(reject()));
}

void ChangeShaderTypeDialog::SetShaderType(ceShaderType type)
{
  _gui.comboBoxShaderType->setCurrentIndex((int)type);
}

ceShaderType ChangeShaderTypeDialog::GetShaderType() const
{
  return (ceShaderType)_gui.comboBoxShaderType->currentIndex();
}
